//-----------------------------------------------------------------------
// <copyright file="ResponsibleBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace MIMS.WRS.Entities
{
	[Serializable]
	public class ShoppingOrder
	{
		
		#region Variable Declarations
		private int				shoppingOrderId = 0;
			private int				userId = 0;
		
		private int				qty20 = 0;
		private int				qty40 = 0;
		private int				qty40HC = 0;
		private bool			orderType = true;//1: for a full container of goods all selected from the IDS ; 0 : Forms part of a existing production order 
		private string				orderNo = string.Empty;
		private decimal				halfPalletSpaces = 0;
		private decimal				filledVolume = 0;
		private int destinationCountryId = 0;
		private int conPointID;

		#endregion
		
		#region Constructors
		public ShoppingOrder() {}
		
		public ShoppingOrder (int shoppingOrderId,
			int userId,int qty20,
			int qty40,int qty40HC,
			bool orderType,
			string orderNo,decimal halfPalletSpaces,
			decimal filledVolume, int destinationCountryId, int conPointID)
		
		{
			this.shoppingOrderId =shoppingOrderId;
			this.userId = userId;
			this.qty20 = qty20;
				this.qty40 = qty40;
				this.qty40HC = qty40HC;
				this.orderType = orderType;
				this.orderNo = orderNo;
				this.halfPalletSpaces = halfPalletSpaces;
				this.filledVolume = filledVolume;
				this.destinationCountryId = destinationCountryId;
			this.conPointID = conPointID;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ShoppingOrderId
		{
			get { return shoppingOrderId; }
			set { shoppingOrderId = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int UserId
		{
			get { return userId; }
			set { userId = value; }
		}
		
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty20
		{
			get { return qty20; }
			set { qty20 = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty40
		{
			get { return qty40; }
			set { qty40 = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty40HC
		{
			get { return qty40HC; }
			set { qty40HC = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public bool OrderType
		{
			get { return orderType; }
			set { orderType = value; }
		}

	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string OrderNo
		{
			get { return orderNo; }
			set { orderNo = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is decimal</value>
		public decimal HalfPalletSpaces
		{
			get { return halfPalletSpaces; }
			set { halfPalletSpaces = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is decimal</value>
		public decimal FilledVolume
		{
			get { return filledVolume; }
			set { filledVolume = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int DestinationCountryId
		{
			get { return destinationCountryId; }
			set { destinationCountryId = value; }
		}


		public int ConPointID
		{
			get { return conPointID; }
			set { conPointID = value; }
		}
		
		#endregion
	}//End Class
	
	public enum ShoppingOrderColumns
	{
		ShoppingOrderId,
		UserId,
		Qty20,
		Qty40,
		Qty40HC,
		OrderType,
		OrderNo,
		HalfPalletSpaces,
		FilledVolume,
		DestinationCountryId,
		ConPointID
	}//End enum
}